﻿using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace furion.blog.Domain.Shared.Vo.Dept
{
    public class DeptDetailVO
    {
        [JsonProperty(PropertyName = "id")]
        public long? Id { get; set; } = null;

        [JsonProperty(PropertyName = "deptId")]
        public long? DeptId { get; set; } = null;

        [JsonProperty(PropertyName = "deptName")]
        public string DeptName { get; set; } = string.Empty;

        [JsonProperty(PropertyName = "name")]
        public string Name { get; set; } = string.Empty;

        [JsonProperty(PropertyName = "parentId")]
        public long? ParentId { get; set; } = null;

        [JsonProperty(PropertyName = "ancestors")]
        public string Ancestors { get; set; } = string.Empty;

        [JsonProperty(PropertyName = "deptEn")]
        public string DeptEn { get; set; } = string.Empty;

        [JsonProperty(PropertyName = "leader")]
        public string Leader { get; set; } = string.Empty;

        [JsonProperty(PropertyName = "phone")]
        public string Phone { get; set; } = string.Empty;

        [JsonProperty(PropertyName = "orderNum")]
        public int? OrderNum { get; set; } = 0;

        [JsonProperty(PropertyName = "createdTime")]
        public DateTime? CreatedTime { get; set; } = null;

        [JsonProperty(PropertyName = "children")]
        public List<DeptDetailVO>? Children { get; set; } = null;

    }
}
